﻿using DA;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BL
{
    public class BanThanhPhamBL
    {
        BanThanhPhamDA banThanhPhamDA;

        public BanThanhPhamBL()
        { 
            banThanhPhamDA = new BanThanhPhamDA();
        }

        public DataSet timKiemBanThanhPham(string maBanThanhPham)
        {
            return banThanhPhamDA.timKiemBanThanhPham(maBanThanhPham);
        }

        public void updateBanThanhPham(DataTable dt)
        {
            banThanhPhamDA.danhSachBanThanhPhamAdapter.Update(dt);
        }

        public DataSet layDanhSachBanThanhPham()
        {
            return banThanhPhamDA.layDanhSachBanThanhPham();
        }
    }
}
